Package com.et.mvc.renderer

Source Code of com.et.mvc.renderer.VoidViewRenderer

package com.et.mvc.renderer;

import com.et.mvc.ViewContext;
import javax.servlet.RequestDispatcher;

public class VoidViewRenderer extends AbstractViewRenderer<Void>{
    public void renderView(Void viewObject, ViewContext viewContext) throws Exception{
        String path = viewContext.getViewBasePath() + viewContext.getControllerPath().toLowerCase() + "/" + viewContext.getActionName() + ".jsp";
        RequestDispatcher rd = viewContext.getRequest().getRequestDispatcher(path);
        rd.forward(viewContext.getRequest(), viewContext.getResponse());
    }
}
TOP

Related Classes of com.et.mvc.renderer.VoidViewRenderer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.